package it.tukano.swingdeco.table;

import java.awt.Component;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

/**
 * A renderer for components as table values
 * @author pgi
 */
public class ComponentValueRenderer implements TableCellRenderer {

    /**
     * Instance initializer
     */
    public ComponentValueRenderer() {
    }

    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
        return (Component) value;
    }
}
